<?php
namespace App\Controllers\Test;
use App\Models\Goods\Goods;
use App\Models\Lession\Course;
use App\Libs\Pay\PayLibs;
class Test extends \App\Libs\Base\BaseAction
{
    protected function beforeRun() {
	parent::beforeRun();
    }
	
    protected function execute() {

//        $goodsInfo = [
//            'subject' => '派乐熊:' ,
//            'out_trade_no' => '4312412342341234123',
//            'total_amount' => 100,   //订单总金额
//            'product_code' => 'QUICK_MSECURITY_PAY',   //固定值
//            'passback_params' => urlencode(json_encode([
//                'type' => 'buy'
//            ]))
//        ];
//
//        $payPullStr = PayLibs::getAlipayAppStr($goodsInfo);
//        print_r($payPullStr);die;
//---------------------------------------------------------
//        $array = [
//            'out_trade_no' => '22234234234234234',       //本系统的订单号
//            'refund_amount' => '0.01',  //退款金额
//        ];
//          $res =   PayLibs::getAlipayH5Str($array);
//            print_r($res);die;
//------------------------------------------------------------
        $data = [
            'isshow' => 1
        ]   ;
        echo json_encode($data);
        die;


    }






}
